/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


/* =========================================
   ROOT
========================================= */

:root {
    --blue-950: #06162f;
    --blue-900: #08224a;
    --blue-800: #0b3b78;
    --blue-700: #0d5bb5;
    --blue-600: #1479e8;
    --blue-500: #2997ff;
    --blue-400: #67b8ff;

    --text-primary: #f8fbff;
    --text-secondary: #a9c5e8;

    --card-border: rgba(255, 255, 255, 0.12);
    --card-background: rgba(8, 30, 65, 0.72);

    --shadow:
        0 30px 100px rgba(0, 0, 0, 0.45);
}


/* =========================================
   BODY
========================================= */

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text-primary);

    background:
        radial-gradient(
            circle at top left,
            #0d4f9c,
            transparent 45%
        ),
        radial-gradient(
            circle at bottom right,
            #06285d,
            transparent 45%
        ),
        var(--blue-950);

    min-height: 100vh;

    overflow-x: hidden;
}


/* =========================================
   BACKGROUND
========================================= */

.background {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;
}


/* Decorative glowing circles */

.orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.35;

    animation:
        float 10s ease-in-out infinite;
}


.orb-1 {
    width: 420px;
    height: 420px;

    background: #1684ff;

    top: -150px;
    left: -100px;
}


.orb-2 {
    width: 350px;
    height: 350px;

    background: #0b5fc7;

    bottom: -120px;
    right: -100px;

    animation-delay: -5s;
}


/* Subtle background grid */

.grid {
    position: absolute;

    inset: 0;

    opacity: 0.08;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.4) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.4) 1px,
            transparent 1px
        );

    background-size: 50px 50px;
}


/* =========================================
   MAIN LAYOUT
========================================= */

.maintenance-container {
    position: relative;

    z-index: 1;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;
}


/* =========================================
   CARD
========================================= */

.maintenance-card {
    width: 100%;

    max-width: 620px;

    padding:
        55px
        50px
        40px;

    text-align: center;

    background: var(--card-background);

    border:
        1px solid
        var(--card-border);

    border-radius: 28px;

    box-shadow: var(--shadow);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);
}


/* =========================================
   ICON
========================================= */

.icon-container {
    width: 88px;
    height: 88px;

    margin:
        0
        auto
        28px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 24px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--blue-500),
            var(--blue-700)
        );

    box-shadow:
        0 15px 40px
        rgba(20, 121, 232, 0.4);
}


.maintenance-icon {
    width: 44px;
    height: 44px;
}


/* =========================================
   STATUS BADGE
========================================= */

.status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        8px
        14px;

    margin-bottom: 20px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;

    color: #b9dcff;

    background:
        rgba(41, 151, 255, 0.12);

    border:
        1px solid
        rgba(41, 151, 255, 0.22);
}


.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #53b4ff;

    box-shadow:
        0 0 12px
        rgba(83, 180, 255, 0.9);

    animation:
        pulse 2s infinite;
}


/* =========================================
   TEXT
========================================= */

h1 {
    margin:
        0
        0
        18px;

    font-size:
        clamp(
            2rem,
            5vw,
            3.2rem
        );

    line-height: 1.15;

    letter-spacing: -1px;
}


.description {
    max-width: 520px;

    margin:
        0
        auto
        36px;

    font-size:
        clamp(
            1rem,
            2vw,
            1.1rem
        );

    line-height: 1.8;

    color: var(--text-secondary);
}


/* =========================================
   PROGRESS
========================================= */

.progress-container {
    margin-bottom: 30px;

    text-align: left;
}


.progress-bar {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.08);
}


.progress {
    width: 55%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--blue-400)
        );

    animation:
        progress-animation
        2.5s
        ease-in-out
        infinite;
}


.progress-container span {
    display: block;

    margin-top: 10px;

    font-size: 13px;

    color: #8eb8e8;
}


/* =========================================
   INFO BOX
========================================= */

.info-box {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 18px;

    margin-bottom: 30px;

    text-align: left;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid
        rgba(255, 255, 255, 0.07);
}


.info-box svg {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    margin-top: 2px;

    color: var(--blue-400);
}


.info-box p {
    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #aac4e4;
}


/* =========================================
   FOOTER
========================================= */

footer {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    font-size: 13px;

    color: #779ecb;
}


.footer-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #2997ff;

    box-shadow:
        0 0 8px
        rgba(41, 151, 255, 0.9);
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes float {

    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    50% {
        transform:
            translate(40px, 30px)
            scale(1.08);
    }
}


@keyframes pulse {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


@keyframes progress-animation {

    0% {
        width: 45%;
    }

    50% {
        width: 75%;
    }

    100% {
        width: 45%;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .maintenance-container {
        padding: 16px;
    }


    .maintenance-card {

        padding:
            40px
            24px
            30px;

        border-radius: 22px;
    }


    .icon-container {

        width: 72px;
        height: 72px;

        border-radius: 20px;

        margin-bottom: 22px;
    }


    .maintenance-icon {

        width: 36px;
        height: 36px;
    }


    .info-box {
        padding: 15px;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

/* Respect users who prefer reduced motion */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;
    }

}